package com.ruoyi.web.mapper;

import java.util.List;
import com.ruoyi.web.domain.FoodCondiment;
import org.apache.ibatis.annotations.Mapper;

/**
 * 调料Mapper接口
 *
 * @author xian_pei
 * @date 2024-06-10
 */
@Mapper
public interface FoodCondimentMapper
{
    /**
     * 查询调料
     *
     * @param condimentId 调料主键
     * @return 调料
     */
    public FoodCondiment selectFoodCondimentByCondimentId(Long condimentId);

    /**
     * 查询调料列表
     *
     * @param foodCondiment 调料
     * @return 调料集合
     */
    public List<FoodCondiment> selectFoodCondimentList(FoodCondiment foodCondiment);

    /**
     * 新增调料
     *
     * @param foodCondiment 调料
     * @return 结果
     */
    public int insertFoodCondiment(FoodCondiment foodCondiment);

    /**
     * 修改调料
     *
     * @param foodCondiment 调料
     * @return 结果
     */
    public int updateFoodCondiment(FoodCondiment foodCondiment);

    /**
     * 删除调料
     *
     * @param condimentId 调料主键
     * @return 结果
     */
    public int deleteFoodCondimentByCondimentId(Long condimentId);

    /**
     * 批量删除调料
     *
     * @param condimentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFoodCondimentByCondimentIds(Long[] condimentIds);
}
